import React, { Component, PropTypes } from 'react'
import PayInfo from "containers/corporate-payment-report/detail/pay-info-list/pay-info";

class CorporatePaymentReportDetailPay extends Component {

  static contextTypes = {
    info: PropTypes.object,
    form: PropTypes.object,
    applicant: PropTypes.object,
    isWaitForAudit: PropTypes.bool,
    jobInfo: PropTypes.object,
    isAuditEditable: PropTypes.bool,
    entry: PropTypes.string
  };

  render() {
    const { info, applicant, form, isWaitForAudit, jobInfo, isAuditEditable, entry } = this.context;
    return (
      <div className='corporate-payment-report-detail-pay'>
        <PayInfo
          userOid={applicant.userOID}
          selectInvoiceOIDs={[]}
          expenseReportInvoices={[]}
          clearSelectInvoiceOIDs={() => {}}
          formInfo={form}
          isWaitForAudit={isWaitForAudit}
          isAuditEditable={isAuditEditable}
          firstMount
          expenseInfo={info}
          afterReload={() => {}}
          refreshInfo={() => this.props.refreshInfo(info, false)}
          refreshPayInfoList={this.props.refreshPayInfoList}
          pageFrom='auditView'
          entry={entry}
          jobInfo={jobInfo}
        />
      </div>
    )
  }

}

export default CorporatePaymentReportDetailPay;
